\documentclass[a4paper,11pt]{report} %type de document
%\usepackage[T1]{fontenc} %police
\usepackage[LGR,T1]{fontenc}
\usepackage[greek,frenchb]{babel}
\usepackage{lmodern}
%\usepackage[french]{babel}
\usepackage[latin1]{inputenc} %Types de caractÚres
\usepackage{color} % Couleur
\usepackage{textcomp} % Symbole degré
\usepackage{listings} % Affichage de code source avec code couleur
\usepackage{verbatim} % Affichage de code brut
\usepackage{makeidx}%faire un index
\usepackage[mathcal,mathbf]{euler} %maths
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage{geometry}
\usepackage{array}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{float}
\usepackage{amssymb}
\usepackage{pdfpages}
\usepackage[pdftex,
bookmarks=true,%
pdfpagemode={UseOutlines},%
pdfstartview={Fit},%
pdftoolbar={true},%
pdfmenubar={true},%
bookmarksopen={true},%
urlcolor=black,%
pdfborder = { 0 0 0}
] {hyperref}%
\hypersetup{colorlinks, linkcolor=black, urlcolor=black,%
pdfauthor={Pierre-Antoine MARC},%
pdftitle={Interfaces Lumicad},%
pdfsubject={},%
pdfcreator={LaTeX},%
}
\renewcommand{\rmdefault}{ppl}

\geometry{ hmargin=2.5cm, vmargin=2cm }
\usepackage{fancyhdr}
\pagestyle{plain}
% d?finition des couleurs pour listing
\definecolor{colKeys}{rgb}{0.13,0.4,0.4}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{0,0,1}
\definecolor{colString}{rgb}{0.6,0.1,0.1}



% Configuration de listings
\lstset{
%language=C++, % Ici le nom du langage
float=hbp,
basicstyle=\ttfamily\small,
% Couleurs
identifierstyle=\color{colIdentifier},
keywordstyle=\color{colKeys},
stringstyle=\color{colString},
commentstyle=\color{colComments},
columns=flexible,
tabsize=2,
frame=trBL,
frameround=tttt,
extendedchars=true,
showspaces=false,
showstringspaces=false,
numbers=left,
numberstyle=\tiny,
breaklines=true,
breakautoindent=true,
captionpos=b,
% marges
xrightmargin=-1cm,
xleftmargin=-0.5cm
}



 \lfoot{}
 \rfoot{\includegraphics[width=3cm]{VVlogo.png}}
\cfoot{| \textbf{\thepage} |}
\lhead{}
\rhead{}


 \pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}


\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}
\def\@makechapterhead#1{%
  \vspace*{10\p@}%
  {\parindent \z@ \raggedleft \reset@font
            \scshape \@chapapp{} \thechapter
        \par\nobreak
        \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    %\vspace*{1\p@}%
    \hrulefill
    \par\nobreak
    \vskip 100\p@
  }}
\def\@makeschapterhead#1{%
  \vspace*{10\p@}%
  {\parindent \z@ \raggedleft \reset@font
            \scshape \vphantom{\@chapapp{} \thechapter}
        \par\nobreak
        \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    %\vspace*{1\p@}%
    \hrulefill
    \par\nobreak
    \vskip 100\p@
  }}
\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
  \numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
  \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 3ex\goodbreak
  \refstepcounter{section}%
  \noindent
  \begingroup
  \leavevmode\Large\bfseries\raggedright
  \llap{\thesection\quad}%
  #2
  \par
  \endgroup
  \vskip 2ex\nobreak
  \addcontentsline{toc}{section}{%
    \protect\numberline{\thesection}%
    #1}%
  }
\def\unnumberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 3ex\goodbreak
%  \refstepcounter{section}%
  \noindent
  \begingroup
  \leavevmode\Large\bfseries\raggedright
  \leavevmode\Large\bfseries\raggedright
%  \thesection\quad 
  #2
  \par
  \endgroup
  \vskip 2ex\nobreak
  \addcontentsline{toc}{section}{%
%    \protect\numberline{\thesection}%
    #1}%
}

\def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@}
\renewcommand{\maketitle}{\begin{titlepage}%
    \let\footnotesize\small
    \let\footnoterule\relax
    \parindent \z@
    \reset@font
    \null
    \vskip 10\p@
    \hbox{\mbox{\hspace{3em}}%
      \vrule depth 0.6\textheight%
      \mbox{\hspace{2em}}
      \vbox{
        \vskip 40\p@
        \begin{flushleft}
          \Large \@author \par
        \end{flushleft}
        \vskip 80\p@
        \begin{flushleft}
          \huge \bfseries \@title \par
        \end{flushleft}
        \vfil
        }}
    \null
  \end{titlepage}%
  \setcounter{footnote}{0}%
}

